package com.my.test.exception;

import org.junit.Test;

public class StartOne {

    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                Start start = new Start();
                start.method1();
            }
        };

        new Thread(new Task()).start();

        //new TaskB().start();
    }

    @Test
    public void method1(){
        Start start = new Start();
        start.method1();
    }
}
